#include "OperationNum.h"
#include"IMergeNums.h"

OperationNum::OperationNum(int nNum1, int nNum2):
m_nNum1(nNum1), m_nNum2(nNum2)
{
	m_pMergeNums = 0;
}



OperationNum::~OperationNum(void)
{
}

int OperationNum::Caculation(bool &bSign)
{
	bSign = true;
	if (m_pMergeNums==0)
	{
		bSign = false;
		return 0;
	}
	return m_pMergeNums->Merge(this);
}

void OperationNum::SetMergerNums(IMergeNums *pMergeNums)
{
	this->m_pMergeNums = pMergeNums;
}